﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Intorise.API;

/// <summary>
///Helper 的摘要说明
/// </summary>
public static class CodeHelper
{
    static ValidateCodeHelper validateCodeHelper = null;

    public static void Init(string rootPath)
    {
        try
        {
            validateCodeHelper = new ValidateCodeHelper(rootPath + "\\bin\\37code.cds", "zheshijie101");
        }
        catch (Exception ex)
        {
            Logs.HandleException(ex);
        }
    }

    static CodeHelper()
	{
        
	}

    public static string GetCode(byte[] datas)
    {
        return validateCodeHelper.GetVcode(datas);
    }
}